package com.vert.db.model;

import java.util.List;

/**
 * @Classname IPage
 * @Description TODO
 * @Date 2022/6/2 12:54
 * @Created by XiongXiong
 * @Author: X.I.O
 */
public class IPage<T> {

    private int total;

    private List<T> data;

    private int size;

    private int current;

    public int getTotal() {
      return total;
    }

    public void setTotal(int total) {
      this.total = total;
    }

    public List<T> getData() {
      return data;
    }

    public void setData(List<T> data) {
      this.data = data;
    }

    public int getSize() {
      return size;
    }

    public void setSize(int size) {
      this.size = size;
    }

    public int getCurrent() {
      return current;
    }

    public void setCurrent(int current) {
      this.current = current;
    }

    public IPage(int total, List<T> data, int size, int current) {
      this.total = total;
      this.data = data;
      this.size = size;
      this.current = current;
    }

    public IPage(int total,List<T> data){
      this.total = total;
      this.data = data;
    }

}
